package com.ruoyi.project.datum.collect.service;

import com.ruoyi.project.datum.collect.mapper.CollectMapper;
import com.ruoyi.project.datum.manage.domain.Manage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述：个人收藏夹 业务处理层
 * 时间：2020/5/20
 * 作者：WangHaiDong
 */
@Service
public class CollectServiceImpl implements ICollectService {

    @Autowired
    private CollectMapper collectMapper;

    /**
     * 查看个人收藏夹列表
     * @param manage
     * @return
     */
    @Override
    public List<Manage> selectAll(Manage manage) {
        return collectMapper.selectAllByCollect(manage);
    }

    /**
     * 根据产品型号 查询产品信息
     * @param manageId
     * @return
     */
    @Override
    public Manage selectManageById(Long manageId) {
        return collectMapper.selectManageById(manageId);
    }
}
